import { createApp } from 'vue';
import App from './App.vue';
import axios from 'axios';
import router from './router';
import pinia from './store';
// svg插件需要配置代码
import 'virtual:svg-icons-register';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// @ts-ignore忽略当前文件ts类型的检测否则有红色提升（打包失败）
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
// 引入自定义插件对象：注册整个项目全局组件
import globalComponent from '@/components/index';
import '@/styles/index.scss';

const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(globalComponent);
app.use(router);
app.use(pinia);
app.mount('#app');
